home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
050a.dms
/
050a.adf
/
EXAMPLE_PROGRAMS
/
example14.AMOS
/
example14.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
2KB
|
82 lines
'=================
Rem example14.amos
'=================
'THE SAY COMMAND
Rem don't forget to turn up the volume
Rem because the text I want to print is going to be more than 40 characters
Rem a line I have re-opened screen 0 to be a hires screen. The screen will
Rem now be 640 pixels across, in other words 80 characters, since there are
Rem 8 pixels to a byte (or character if you like) 640/8=80.
'----------------------------------------------------------------------------
Screen Open 0,640,256,8,Hires
Flash Off : Curs Off : Hide : Paper 0 : Pen 6 : Cls 0
Rem To keep things looking tidy I have used CENTRE instead of PRINT
Rem Since the SAY isn't that crystal clear I decided to display the text
Rem on the screen at the same time.
'-------------------------------------------------------------------
Centre "Hello, this is an example of the SAY command"
Rem Can you remember why I have put the PRINT statement here?
Rem take out the WAIT VBL to find out why we need it.
'----------------------------------------------------------
Print
Wait Vbl
Rem Here we go with the first bit of speech.
'-------------------------------------------
Say "Hello, this is an example of the SAY command."
Rem And here is more of the same
'--------------------------------------
Centre " If you intend to use this command in your own programs,"
Print
Say " If you intend to use this command in your own programs,"
Centre "make sure that the narrator device is present on the disk you are using"
Print
Say "Make sure that the narrator device is present on the disk you are using."
Centre "This file can be found in the DEVS drawer of your Amos disk"
Print
Say "This file can be found in the DEVS drawer of your Amos disk"
Rem the set talk command let's you change the sex,mode,pitch and rate of SAY.
Rem the commas mean use the default setting for the number that would be
Rem there in it's place
'--------------------------------------------------------------------------------
Centre "THIS IS A FEMALE VOICE"
Print
Set Talk 1,,, : Say "THIS IS A FEMALE VOICE"
Centre "FEMALE WITH INOTATION"
Print
Set Talk 1,1,, : Say "This is a female voice with inotation"
Centre "A SAPRANO VOICE"
Print
Set Talk 0,0,320, : Say "A saprano voice"
Centre "A DEEP VOICE"
Print : Wait Vbl
Set Talk ,,65, : Say "A deep voice"
Centre "THIS IS SLOW"
Print
Set Talk ,,,40 : Say "THIS IS SLOW"
Centre "PRESS A KEY"
Say "PRESS A KEY"
Clear Key : Wait Key
Edit